class RecipesController < ActionController::Base
  layout "application"
  def index
    @recipes=Recipe.all
  end

  def create
    @recipe=Recipe.new(params[:recipe])
    if @recipe.save
      redirect_to recipes_path, flash[:notify]=>"your recipe has been saved"
    else
      render :new, flash[:alert]=>"Your recipe could not save"
    end
  end
  
end